package com.huakang.controller;

import com.huakang.entity.Sickbed;
import com.huakang.service.SickbedroomService;
import com.huakang.utils.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/sickbedroom")
public class SickbedroomController {
    @Autowired
    private SickbedroomService sickbedroomService;
    @GetMapping("/getSickbed")
    public ResultVo getScikbed(Integer srid) {
        List<Sickbed> list = sickbedroomService.getSickbed(srid);
        return ResultVo.success("查询成功", list);
    }
}
